package com.xy.modular.shop.entity;

import com.xy.framework.base.entity.Entity;

import java.math.BigDecimal;

/**
 * <p>
 * 
 * </p>
 *
 * @author BCK
 * @since 2019-10-12
 */
public class Product extends Entity {

    private static final long serialVersionUID = 1L;

    /**
     * 关联product_cates表ID
     */
    private String typeId;
    /**
     * 商品名称
     */
    private String title;
    /**
     * 商品编码 	随机生成的一个字符串
     */
    private String proNo;
    /**
     * 关键字 	方便用户搜索
     */
    private String keywords;
    /**
     * 商品主图 	建议采用路径存储url
     */
    private String img;
    /**
     * 商品最低价 	为了吸引用户进入浏览 给出最低配置甚至配件价格
     */
    private BigDecimal price;
    /**
     * 商品描述 	商品简介，广告词等
     */
    private String des;
    /**
     * 点击量 	分析流量，统计数据
     */
    private Integer pv;
    /**
     * 产品状态 	状态：-1 已删除 0 下架 1 上架
     */
    private Boolean status;
    public String getTypeId() {
        return typeId;
    }

    public void setTypeId(String typeId) {
        this.typeId = typeId;
    }
    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
    public String getProNo() {
        return proNo;
    }

    public void setProNo(String proNo) {
        this.proNo = proNo;
    }
    public String getKeywords() {
        return keywords;
    }

    public void setKeywords(String keywords) {
        this.keywords = keywords;
    }
    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }
    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }
    public String getDes() {
        return des;
    }

    public void setDescribe(String des) {
        this.des = des;
    }
    public Integer getPv() {
        return pv;
    }

    public void setPv(Integer pv) {
        this.pv = pv;
    }
    public Boolean getStatus() {
        return status;
    }

    public void setStatus(Boolean status) {
        this.status = status;
    }

    public static final String TYPE_ID = "shop_product.type_id";
    public static final String TITLE = "shop_product.title";
    public static final String PRO_NO = "shop_product.pro_no";
    public static final String KEYWORDS = "shop_product.keywords";
    public static final String IMG = "shop_product.img";
    public static final String PRICE = "shop_product.price";
    public static final String DESCRIBE = "shop_product.describe";
    public static final String PV = "shop_product.pv";
    public static final String STATUS = "shop_product.status";

    @Override
    public String toString() {
        return "Product{" +
            "typeId=" + typeId +
            ", title=" + title +
            ", proNo=" + proNo +
            ", keywords=" + keywords +
            ", img=" + img +
            ", price=" + price +
            ", describe=" + des +
            ", pv=" + pv +
            ", status=" + status +
        "}";
    }
}
